// LANGUAGE: +NameBasedDestructuring +DeprecateNameMismatchInShortDestructuringWithParentheses +EnableNameBasedDestructuringShortForm
// WITH_STDLIB

fun box(): String {
    for ([index, x] in "".withIndex()) {
        return "Loop over empty String should not be executed"
    }
    return "OK"
}